package cn.edu.sgu.www.mhxysy.service.zuoqi.impl;

import cn.edu.sgu.www.mhxysy.entity.zuoqi.ZuoqiType;
import cn.edu.sgu.www.mhxysy.mapper.zuoqi.ZuoqiTypeMapper;
import cn.edu.sgu.www.mhxysy.service.zuoqi.ZuoqiTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ZuoqiTypeServiceImpl implements ZuoqiTypeService {

    private final ZuoqiTypeMapper zuoqiTypeMapper;

    @Autowired
    public ZuoqiTypeServiceImpl(ZuoqiTypeMapper zuoqiTypeMapper) {
        this.zuoqiTypeMapper = zuoqiTypeMapper;
    }

    @Override
    public List<ZuoqiType> selectAll() {
        return zuoqiTypeMapper.selectList(null);
    }

    @Override
    public ZuoqiType selectById(Integer id) {
        return zuoqiTypeMapper.selectById(id);
    }

}